From: Hauke Mehrtens Date: Tue, 27 May 2025 20:13:03 +0000 (+0200) Subject: toolchain: gdb: set -std=gnu17 X-Git-Tag: v23.05.6~32 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=2c36ed03e5fd358ae4ad0c5935bbbc2bc20cfad6;p=openwrt%2Fopenwrt.git toolchain: gdb: set -std=gnu17 Arch Linux updated to GCC15 which now defaults to GNU23 as the default instead of GNU17[1], and this breaks gdb compilation. This is fixed in more recent gdb versions. [1] https://gcc.gnu.org/gcc-15/porting_to.html#c23 Link: https://github.com/openwrt/openwrt/pull/19065 Signed-off-by: Hauke Mehrtens --- diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index 474a18e95f..05f2e97331 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -53,6 +53,8 @@ else HOST_CONFIGURE_ARGS+= --without-python endif +HOST_CFLAGS += -std=gnu17 + define Host/Install mkdir -p $(TOOLCHAIN_DIR)/bin $(INSTALL_BIN) $(HOST_BUILD_DIR)/gdb/gdb $(TOOLCHAIN_DIR)/bin/$(TARGET_CROSS)gdb